package com.ruimei.entitys.enums;

import com.ruimei.util.CommUtil;
import java.io.PrintStream;

public enum LearnStruts
{
  STUDYING("在读"),  DROPOUT("休学"),  KEEP("保留学籍");
  
  private String name;
  
  public static LearnStruts values(String learnStruts)
  {
    if (CommUtil.isEmpty(learnStruts)) {
      return null;
    }
    switch (learnStruts)
    {
    case "STUDYING": 
      return STUDYING;
    case "DROPOUT": 
      return DROPOUT;
    case "KEEP": 
      return KEEP;
    }
    return null;
  }
  
  public static LearnStruts values(int num)
  {
    switch (num)
    {
    case 0: 
      return STUDYING;
    case 1: 
      return DROPOUT;
    case 2: 
      return KEEP;
    }
    return null;
  }
  
  public static int valuesNum(String learnStruts)
  {
    switch (learnStruts)
    {
    case "STUDYING": 
      return 0;
    case "DROPOUT": 
      return 1;
    case "KEEP": 
      return 2;
    }
    return 0;
  }
  
  public static LearnStruts value(Object learnStruts)
  {
    return values(String.valueOf(learnStruts));
  }
  
  private LearnStruts(String name)
  {
    this.name = name;
  }
  
  public String getName()
  {
    return this.name;
  }
  
  public static LearnStruts matching(String ch)
  {
    switch (ch)
    {
    case "在读": 
      return STUDYING;
    case "休学": 
      return DROPOUT;
    case "保留学籍": 
      return KEEP;
    }
    return STUDYING;
  }
  
  public static void main(String[] args)
  {
    System.out.println(KEEP.name);
  }
}


/* Location:              E:\360MoveData\Users\admin\Desktop\teacher_wap-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes\com\ruimei\entitys\enums\LearnStruts.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       0.7.1
 */